package com.laiketui.order.service.wechatPay;

import com.laiketui.core.exception.LaiKeAPIException;
import com.laiketui.order.api.params.wechatPay.PaymentParams;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 微信支付
 * @author
 */
public interface WechatPayService {

    /**
     * 支付
     *
     * @param params
     * @return
     * @throws LaiKeAPIException
     */
    Map<String, String> pay(PaymentParams params) throws LaiKeAPIException;

    /**
     * 微信小程序回调
     */
    String weChatNotifyV2(HttpServletRequest request) throws LaiKeAPIException;

    /**
     * 回调
     *
     * @param params
     * @return
     */
    Map<String, Object> payBack(Map params) throws LaiKeAPIException;

}
